import IdGenerator = require('./../common/IdGenerator');
import ObjManager = require('./../kernel/cont/ObjManager');
import DEFINE = require('./../common/DEFINE');
import Parser = require('./../kernel/base/Parser');
export = GlobalData;

/**
 * @author
 *
 */
class GlobalData {
	// 类型解析器
	private g_parser:Parser = new Parser();

	// 实例化
	private  g_idGenerator: IdGenerator = new IdGenerator();
	private  g_objManager: ObjManager = new ObjManager(this); // 对象管理器

	// versionId
	private versionId:number=0;


	public constructor() {
	}
	public parser():Parser{
		return this.g_parser;
	}

	public  idGenerator():IdGenerator{
		return this.g_idGenerator;
	}

	public  objManager():ObjManager{
		return this.g_objManager;
	}

	private  g_docStatus: number = DEFINE.DOC_STATUS_LOADING;// 文档状态
	public  docStatus():number{
		return this.g_docStatus;
	}
	public  setDocStatus(s:number){
		this.g_docStatus = s;
	}
	public getVersionId():number{
		return this.versionId;
	}
	public setVersionId(s:number){
		this.versionId = s;
	}





}//SJG_MARK_END-------------------------
